<?php
if (!defined("_ECRIRE_INC_VERSION")) return;

include_spip('functions/pdk_common');

/**
 *  Charging function
 */ 
function formulaires_ecatalogue_product_excel_download_charger_dist(){
	$valeurs = array();
	return $valeurs;
}

/**
 *  Validation function
 */
function formulaires_ecatalogue_product_excel_download_verifier_dist(){
	$erreurs = array();
	return $erreurs;
}

/**
 *  Processing function
 */
function formulaires_ecatalogue_product_excel_download_traiter_dist(){
    //require_once(_DIR_PLUGIN_ECATALOGUE.'classes/class.ProductExcel.php');
    $prd_ex = pdk_load_class('ProductExcel', 'classes');
    if (_request('download_rubriques'))
        $prd_ex->DownloadRubriques = picker_selected(_request('download_rubriques'), 'rubrique');
    if (_request('id_mot'))
        $prd_ex->DownloadIdMot = _request('id_mot');
    $prd_ex->OutputExcel();    
}

?>